<template>
	<view class="user">
		<view class="top">
			<view class="top-one">
				<image src="../../static/tabbar/page.png" mode="" class="ioc"></image>
				<image src="../../static/tabbar/home.png" mode="" class="ioc"></image>
			</view>
			<view class="top-two">
				<image src="../../static/index/asd.png" mode="" class="img"></image>
				<view class="right">
					<view class="top-text">
						名字
					</view>
					<view class="bottom-text">
						关注 0 | 粉丝 0
					</view>
				</view>
			</view>
			<view class="top-three">
				<view class="list" v-for="(item, index) in top_list" :key="index">
					<view class="num">
						{{ item.num }}
					</view>
					<view class="text">
						{{ item.name }}
					</view>
				</view>
			</view>
			<view class="top-four">
				<text>偷偷告诉你，实名认证后共享宝贝更容易卖出哦~</text>
				<text>></text>
			</view>
		</view>
		<view class="bottom">
			<userfunclist></userfunclist>
		</view>
		<view class="background">
			
		</view>
	</view>
</template>

<script>
	import userfunclist from '../../components/userFuncList/userFuncList.vue'
	export default {
		name: 'user',
		data() {
			return {
				top_list: [
					{
						num: 0,
						name: '购物车'
					},
					{
						num: 3,
						name: '足迹'
					},
					{
						num: 7,
						name: '赞过'
					},
					{
						num: 0,
						name: '账单'
					}
				],
				
			};
		},
		components: {
			userfunclist
		}
	}
</script>

<style lang="scss" scoped>
.user {
	position: relative;
	box-sizing: border-box;
}
.top {
	background-color: #54b4f9;
	height: 430rpx;
	padding: 0 25rpx;
	.top-one {
		display: flex;
		justify-content: flex-end;
		align-items: center;
		padding: 20rpx 15rpx 0;
		.ioc {
			width: 35rpx;
			height: 35rpx;
			margin-left: 25rpx;
		}
	}
	
	.top-two {
		display: flex;
		.img {
			width: 80rpx;
			height: 80rpx;
			border-radius: 50%;
			border: 1px solid #FFFFFF;
		}
		.right {
			margin-left: 20rpx;
			.top-text {
				font-weight: 600;
				color: #fdffff;
			}
			.bottom-text {
				margin-top: 10rpx;
				font-size: 20rpx;
				color: #abdafc;
			}
		}
	}
	
	.top-three {
		margin-top: 25rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		color:  #abdafc;
		.list {
			padding: 0 40rpx;
			text-align: center;
			.num {
				color: #FFFFFF;
			}
			.text {
				font-size: 20rpx;
				margin-top: 15rpx;
			}
		}
	}
	
	.top-four {
		margin-top: 20rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 15rpx 20rpx;
		font-size: 20rpx;
		color: #e5e5e5;
		background-color: #5e6b71;
		border-radius: 10rpx;
	}
	
}

.bottom {
	margin-left: 50%;
	transform: translateX(-50%);
	// text-align: center;
	// background-color: red;
	position: absolute;
	top: 360rpx;
}

.background {
	position: fixed;
	top: 0rpx;
	bottom: 0rpx;
	left: 0px;
	right: 0px;
	z-index: -55;
	background-color: #efefef;
}

</style>
